package Library.User;

import Library.operation.*;

import java.util.Scanner;

public class NormalUser extends User{
    public NormalUser(String name) {
        super(name);
        ioperation = new IOperation[]{
                new ExitOperation(),
                new ListOperation(),
                new FindOperation(),
                new BorrowOperation(),
                new ReturnOperation(),
        };
    }

    @Override
    public int menu() {
        System.out.println("------------------");
        System.out.println("你好 " + name + "!");
        System.out.println("1: 查找书籍列表");
        System.out.println("2: 按照名字查找图书");
        System.out.println("3: 借阅图书");
        System.out.println("4: 归还图书");
        System.out.println("0: 退出");
        System.out.println("------------------");
        System.out.println("请选择：");
        Scanner scanner = new Scanner(System.in);
        int choice = scanner.nextInt();
        return choice;

    }
}
